//
//  ServiceConnect.h
//  ExternalCommonLibrary
//
//  Created by goldeney on 15/1/6.
//  Copyright (c) 2015年 ShangHai Goldeneye Techonology Co.,Ltd. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MBProgressHUD.h"
#import "ServiceHelper.h"
#import "ServiceParametModel.h"

@interface ServiceConnect : NSObject<ServiceHelperDelegate>

@property (nonatomic, weak) id<ServiceHelperDelegate> delegate;

- (id)initWithMethodName:(NSString*)methodName dataArray:(ServiceParametModel*)para URL:(NSString*)url;//OA模块
- (id)initWithMethodName:(NSString*)methodName dataArray:(ServiceParametModel*)para; //OA模块

//- (void)startConnectNetworkGetData;
//- (id)startSyncConnectNetworkGetData;// 已废弃，不再支持同步联网方式

//- (void)startConnectNetworkGetDataProgress:(UIView*)view labelText:(NSString*)labelText;
//- (void)startQueueConnectNetworkGetData;
- (void)startConnectNetworkCompleted:(finishBlockRequest)finish failed:(failedBlockRequest)failed abnormal:(abnormalBlockRequest)abnormal;
- (void)cancel;

- (void)showMBProgressHUD:(id)anObject labelText:(NSString*)labelText;

@end
